class GetPeerOrders {
  int id;
  String routerId;
  String pickUpTime;
  String departureTime;
  String driverId;
  int seatNum;
  int passengerNum;
  String state;
  String createTime;
  String createId;
  String updateTime;
  String updateId;
  String startCitycode;
  String endCitycode;
  String originProvince;
  String orginCity;
  String orginPoint;
  String orginPinyin;
  String endProvince;
  String endCity;
  String endPoint;
  String endAddress;
  String endPinyin;

  GetPeerOrders(
      {this.id,
      this.routerId,
      this.pickUpTime,
      this.departureTime,
      this.driverId,
      this.seatNum,
      this.passengerNum,
      this.state,
      this.createTime,
      this.createId,
      this.updateTime,
      this.updateId,
      this.startCitycode,
      this.endCitycode,
      this.originProvince,
      this.orginCity,
      this.orginPoint,
      this.orginPinyin,
      this.endProvince,
      this.endCity,
      this.endPoint,
      this.endAddress,
      this.endPinyin});

  GetPeerOrders.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    routerId = json['router_id'];
    pickUpTime = json['pick_up_time'];
    departureTime = json['departure_time'];
    driverId = json['driver_id'];
    seatNum = json['seat_num'];
    passengerNum = json['passenger_num'];
    state = json['state'];
    createTime = json['create_time'];
    createId = json['create_id'];
    updateTime = json['update_time'];
    updateId = json['update_id'];
    startCitycode = json['start_citycode'];
    endCitycode = json['end_citycode'];
    originProvince = json['origin_province'];
    orginCity = json['orgin_city'];
    orginPoint = json['orgin_point'];
    orginPinyin = json['orgin_pinyin'];
    endProvince = json['end_province'];
    endCity = json['end_city'];
    endPoint = json['end_point'];
    endAddress = json['end_address'];
    endPinyin = json['end_pinyin'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['router_id'] = this.routerId;
    data['pick_up_time'] = this.pickUpTime;
    data['departure_time'] = this.departureTime;
    data['driver_id'] = this.driverId;
    data['seat_num'] = this.seatNum;
    data['passenger_num'] = this.passengerNum;
    data['state'] = this.state;
    data['create_time'] = this.createTime;
    data['create_id'] = this.createId;
    data['update_time'] = this.updateTime;
    data['update_id'] = this.updateId;
    data['start_citycode'] = this.startCitycode;
    data['end_citycode'] = this.endCitycode;
    data['origin_province'] = this.originProvince;
    data['orgin_city'] = this.orginCity;
    data['orgin_point'] = this.orginPoint;
    data['orgin_pinyin'] = this.orginPinyin;
    data['end_province'] = this.endProvince;
    data['end_city'] = this.endCity;
    data['end_point'] = this.endPoint;
    data['end_address'] = this.endAddress;
    data['end_pinyin'] = this.endPinyin;
    return data;
  }
}
